package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.Date;

/**
 * @author ：zfr
 * @date ：2021/3/23 15:14
 */
@FieldTypeAnnotation(tableName = "t_l_ck_clinic_disease", desc = "病例图鉴升级日志", autoSave = true, uploadCk = true)
public class LogClinicDisease extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "用户id", isIndex = true)
    private long userId;
    @FieldTypeAnnotation(desc = "病例类型")
    private int type;
    @FieldTypeAnnotation(desc = "病例id")
    private int diseaseId;
    @FieldTypeAnnotation(desc = "原始值")
    private int originLv;
    @FieldTypeAnnotation(desc = "当前值")
    private int curLv;
    @FieldTypeAnnotation(desc = "消耗")
    private long cost;

    public LogClinicDisease(long userId, int type, int diseaseId, int originLv, int curLv, long cost) {
        this.userId = userId;
        this.type = type;
        this.diseaseId = diseaseId;
        this.originLv = originLv;
        this.curLv = curLv;
        this.cost = cost;
    }

    public long getUserId() {
        return userId;
    }

}
